import msgContent from './page/ownMsg/msgContent.vue'
import msgList from './page/ownMsg/msgList.vue'
import indexLogin from './page/index/login.vue'
import indexHomePage from './page/index/homePage.vue'
import indexRegister from './page/index/register.vue'
import addMsg from './page/ownMsg/addMsg.vue'

export default [
  {
    path: '/',
    component: msgList,
    meta: {
      requiresAuth: true
    }
  },
  {
    path: '/index/login',
    component: indexLogin
  },
  {
    path: '/index/register',
    component: indexRegister
  },
  {
    path: '/index/home-page',
    component: indexHomePage,
    meta: {
      requiresAuth: true
    }
  },
  {
    path: '/ownMsg',
    component: msgList,
    meta: {
      requiresAuth: true
    }
  },
  {
    path: '/ownMsg/addMsg',
    component: addMsg,
    meta: {
      requiresAuth: true
    }
  },
  {
    path: '/ownMsg/msgList',
    component: msgList,
    meta: {
      requiresAuth: true
    }
  },
  {
    path: '/ownMsg/msgList/msgContent/:id',
    component: msgContent,
    meta: {
      requiresAuth: true
    }
  }
]
